<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="userViewBean"
		value="#{commonContentViewBean.allView[1]}" />
		
	<h:form style="margin:0" >
		<ui:decorate
			template="/layout/iteration/datatable/sino-datatable-single-template.xhtml">
			<ui:param name="compId" value="#{userViewBean.id}" />
			<ui:param name="compViewBean" value="#{userViewBean}" />
			<ui:param name="compShowIndex" value="true" />
			<ui:param name="compOnRowSelectUpdate" value="#{userViewBean.id}_userForm" />

			<ui:define name="compButtons">
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','v3.manage.org.userLayout.view','450','650','icons/cog_add.png','view','org-manage-scene','org-user-view');"
					title="查看用户详细信息" image="ui-icon-disk" value="查看">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','v3.manage.org.userLayout.add','680','480','icons/cog_add.png','add','org-manage-scene','org-user-add');"
					title="添加用户" image="ui-icon-disk" value="新建">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','v3.manage.org.userLayout.edit','450','360','icons/cog_edit.png','update','org-manage-scene','org-user-edit');"
					title="修改用户" image="ui-icon-disk" value="修改">
				</p:commandButton>
				<p:commandButton
					actionListener="#{userManage.userDelAction}"
					onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
					update="#{userViewBean.id}_userForm:#{userViewBean.id}_grid"
					title="删除用户" image="ui-icon-disk" value="删除">
					<h:inputHidden value="#{userViewBean.id}" />
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','v3.manage.org.userLayout.group','600','450','icons/cog_add.png','group','org-manage-scene','group-role');"
					title="分配角色" image="ui-icon-disk" value="分配角色">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','','450','360','icons/cog_add.png','excel','org-manage-scene','user-add');"
					title="导出Exel" image="ui-icon-disk" value="导出Exel">
					
				</p:commandButton>
			</ui:define>
		</ui:decorate>
	</h:form>
	
</ui:composition>